ARM REST Services
Apply Configuration Examples
Configure Application Properties
To configure application properties managed through Runtime Manager you need to send the application properties component by issuing a POST or PATCH (if the application already exists) request to the applications' endpoint as depicted in the example below:
curl -s -X PATCH 'https://anypoint.mulesoft.com/hybrid/api/v1/applications/{applicationId}' \
-H 'Authorization: bearer <<TOKEN>>' \
-H 'X-ANYPNT-ORG-ID: <<ORG\\_ID>>' \
-H 'X-ANYPNT-ENV-ID: <<ENV\\_ID>>' \
-H 'Content-type: multipart/form-data' \
-F 'configuration={
"mule.agent.application.properties.service": {
"applicationName": "example-app",
"properties": {
"myproperty": "mynewValue3"
}
}
}'
Configure Server Properties
To configure server properties in your Mule Runtimes you need to configure the server properties component by issuing a PATCH request to the component's endpoint as shown in this example:
Note: The field properties must include all the properties you want to set because the patch cannot do a diff between the existing properties and the provided ones.
curl -X PATCH \
https://anypoint.mulesoft.com/hybrid/api/v1/targets/{targetId}/components/203 \
-H 'authorization: Bearer <<TOKEN>>' \
-H 'content-type: application/json' \
-H 'x-anypnt-env-id: <<ENV\\_ID>>' \
-H 'x-anypnt-org-id: <<ORG\\_ID>>' \
-d '{
"enabled": "true",
"configuration" : {
"properties": [
{"name": "env", "value": "qa"},
{"name": "timeout", "value": "2000"}
]
}
}'